package MVCEX2BT6;
import java.util.Scanner;
public class Views {
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	Object obj=new Object();
	Controllers Implements=new Controllers();
	int i;
	int x=0;String y="",z="";
	
	
//	System.out.print("Input number: ");
//	obj.setNumber(sc.nextInt());
//	sc=new Scanner(System.in);
//	System.out.print("Input option: ");
//	obj.setOption(sc.nextLine());
	
	do{
	i=0;
	System.out.print("Input number: ");
	y=sc.nextLine();
	System.out.print("Input option: ");
	z=sc.nextLine();
	try{
	x=Integer.parseInt(y);
	}
	catch(NumberFormatException exc){
		i=1;
		System.out.println("------Reset------");
	}
	if(i!=1){
		if(!(z.equalsIgnoreCase("chan")||z.equalsIgnoreCase("le"))){
			i=1;
			System.out.println("------Reset------");
		}
	}
	}
	while(i==1);
	
	obj.setNumber(x);
	obj.setOption(z);
	
	Implements.EvenOddControllers(obj);
}
}
